package com.xiaotu.contoller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PageController {
    @RequestMapping("{pageName}")
    public String pages(@PathVariable("pageName") String pageName){
        return pageName;
    }
    @RequestMapping("/{lastPage}/{NextPage}")
    public String pages(@PathVariable("lastPage")String lastPage,@PathVariable("NextPage") String NextPage){
        return lastPage+"/"+NextPage;
    }
}
